<?php

    /**
     * This creates the link ul/li elements on the top bar, such as Home, About Us etc.. etc..
     * The User Profile System is ACTIVE at this stage, you can use $_LOGGEDINUSER to decide
     * which elements to show if you need to. (such as isAdmin() => Display Admin Home Link)
     */

    $TemplateEngine->create_menu_item('http://www.eclipse.org/', 'Home');
    $TemplateEngine->create_menu_item('http://www.eclipse.org/downloads/', 'Downloads');
    $TemplateEngine->create_menu_item('http://www.eclipse.org/users/', 'Users');
    $TemplateEngine->create_menu_item('http://www.eclipse.org/membership/', 'Members');
    $TemplateEngine->create_menu_item('http://www.eclipse.org/committers/', 'Committers');
    $TemplateEngine->create_menu_item('http://www.eclipse.org/resources/', 'Resources');
    $TemplateEngine->create_menu_item('http://www.eclipse.org/projects/', 'Projects');
    $TemplateEngine->create_menu_item('http://www.eclipse.org/org/', 'About Us');
    
    if(isset($_LOGGEDINUSER) === false || (isset($_LOGGEDINUSER) === true && $_LOGGEDINUSER === false)) {
	// Stuff to show to users not logged in
    } else {
	// Stuff to show to users logged in
	$TemplateEngine->create_menu_item('/add/project', '<b>Create Project</b>');
        $TemplateEngine->create_menu_item('/search/user', '<b>Search for a User</b>');
    }
    
    $TemplateEngine->create_menu_item('/search/project', '<b>Search for a Project</b>');
?>
